<?php /* Smarty version 2.6.19, created on 2008-07-06 12:01:47
         compiled from another/tetatet.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'another/tetatet.tpl', 1, false),array('modifier', 'date_format', 'another/tetatet.tpl', 20, false),array('modifier', 'escape', 'another/tetatet.tpl', 20, false),)), $this); ?>
<?php echo smarty_function_config_load(array('file' => "index.conf"), $this);?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/doctype.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<head>
    <title>Private chat</title>
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/include.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    <meta http-equiv="refresh" content="<?php echo $this->_config[0]['vars']['refresh']; ?>
" />
</head>

<body>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/logo.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/global_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div>Chat with <a href="/another/profile/<?php echo $this->_tpl_vars['data']['user_id']; ?>
/"><?php echo $this->_tpl_vars['data']['user_login']; ?>
</a></div><br />

<div>
<?php if (sizeof ( $this->_tpl_vars['messages'] )): ?>
	<?php $_from = $this->_tpl_vars['messages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
	    [<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['tetatet_created'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%H:%M:%S") : smarty_modifier_date_format($_tmp, "%H:%M:%S")); ?>
] <?php if ($this->_tpl_vars['item']['tetatet_user_id_from'] == $this->_tpl_vars['data']['user_id']): ?><a href="/another/profile/<?php echo $this->_tpl_vars['data']['user_id']; ?>
/"><b><?php echo $this->_tpl_vars['data']['user_login']; ?>
</b></a><?php else: ?><b>You</b><?php endif; ?>: <?php echo ((is_array($_tmp=$this->_tpl_vars['item']['tetatet_message'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<br />
	<?php endforeach; endif; unset($_from); ?>
	<div>
    <!-- Paging -->
    <?php $_from = $this->_tpl_vars['paging']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
?>
        <?php if ($this->_tpl_vars['page'] == $this->_tpl_vars['key']): ?><?php echo $this->_tpl_vars['item']; ?>
<?php else: ?><a href="<?php echo $this->_tpl_vars['sys_action_path']; ?>
/<?php echo $this->_tpl_vars['data']['user_id']; ?>
/<?php if ($this->_tpl_vars['key'] != 0): ?><?php echo $this->_tpl_vars['key']; ?>
/<?php endif; ?>"><?php echo $this->_tpl_vars['item']; ?>
</a><?php endif; ?> 
    <?php endforeach; endif; unset($_from); ?>
    <!--// Paging -->
</div>
<?php else: ?>
    <p>Empty</p>
<?php endif; ?>
</div><br />

<img src="/media/img/design/13.gif" />
<a href="/another/write/<?php echo $this->_tpl_vars['data']['user_id']; ?>
/">Write message</a><br />
<img src="/media/img/design/15.gif" />
<a href="<?php echo $this->_tpl_vars['sys_action_path']; ?>
/<?php echo $this->_tpl_vars['data']['user_id']; ?>
/">Refresh</a><br />
<img src="/media/img/design/point.gif" />
<a href="/another/index/<?php echo $this->_tpl_vars['data']['user_id']; ?>
/">User menu</a>

</body>

</html>